package com.qsmx.store.app.main.mem;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.qsmx.store.app.R;
import com.qsmx.store.app.R2;
import com.qsmx.store.app.main.mem.adapter.MemPublicCardAdapter;
import com.qsmx.store.core.delegates.AtmosDelegate;

import butterknife.BindView;

public class MemPublicCardDelegate extends AtmosDelegate {

    @BindView(R2.id.rlv_public_info)
    RecyclerView rlvPublicInfo = null;

    @Override
    public Object setLayout() {
        return R.layout.delegate_mem_public_card;
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, View rootView) {

        initRecycler();

    }

    private void initRecycler() {

        LinearLayoutManager manager = new LinearLayoutManager(getContext());
        MemPublicCardAdapter mAdapter = new MemPublicCardAdapter(getContext());

        rlvPublicInfo.setLayoutManager(manager);
        rlvPublicInfo.setAdapter(mAdapter);

    }
}
